trace of a square matrix

方阵的迹;对角元素和